//
//  MHMomentHelper.h
//  MHDevelopExample
//
//Created by acgera on 2018/4/9.
//  Copyright © 2018年 acgera. All rights reserved.
//  微信朋友圈工具类

#import <Foundation/Foundation.h>
#import "MHshareRecent.h"
#import "MLCircleInfoMainPageViewModel.h"
#import "MHQRCodeModel.h"
#import <AMapSearchKit/AMapSearchKit.h>
#import "MHChatViewModel.h"
@class MHMomentVideo;

@interface MHMomentHelper : NSObject
/// 微信用到的 dateFormatter
+ (NSDateFormatter *)dateFormatter;
/// 时间转化 
+ (NSString *)createdAtTimeWithSourceDate:(NSDate *)sourceDate;
/// 电话号码正则
+ (NSRegularExpression *)regexPhoneNumber;
/// 链接正则
+ (NSRegularExpression *)regexLinkUrl;

/// 关闭 微信朋友圈的一些弹出事件 （评论和点赞view ， 键盘）背景高亮view....
+ (void)hideAllPopViewWithAnimated:(BOOL)animated;

+ (NSString * )saveToWebpByVideoPath:(MHMomentVideo *)momentVideo;

+ (NSString *)gloabalDateTransfer:(NSDate *)sourceDate;

+(void) shareWithSharRecent:(MHshareRecent *) shareRecent shareType:(MHCirclShareType) shareType;


+(void) enterOrJionCircleWithViewModel:(MHViewModel *)viewModel;

+(void) enterOrJionCircleWithViewModel:(MHViewModel *)viewModel joinSuccessBlock:(VoidBlock) successBlock;

+(void) redirectToGroupChatWithCircleId:(int )circleId service:(id<MHViewModelServices>) service groupId:(NSString *) groupId title:(NSString *) title;

@end
